/**
 * 序列化数据
 *author:noodles 
 */
package utils.net
{
	import flash.utils.ByteArray;
	import flash.utils.Endian;

	public class Serial
	{
		private static var _instance:Serial;
		
		public function Serial()
		{
		}
		
		private static function get instance():Serial
		{
			if(_instance == null)
				_instance = new Serial();
			return _instance;
		}
		
		public static function encode($data:Object):ByteArray
		{
			var dataByteArray:ByteArray = new ByteArray();
			dataByteArray.endian = Endian.BIG_ENDIAN;
			for(var a:Object in $data)
			{
				
			}
			
			return dataByteArray;
		}
		
		
	}
}